package com.shining.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class LoginActivity extends Activity
{
	private Button loginButton;
	private Button cancelButton;
	

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		loginButton = (Button) findViewById(R.id.login);
		cancelButton = (Button) findViewById(R.id.cancel);
		loginButton.setOnClickListener(new LoginTask());
		cancelButton.setOnClickListener(new CancelTask());

	}

	private class LoginTask implements OnClickListener
	{
		@Override
		public void onClick(View v)
		{
			
		}
	}

	private class CancelTask implements OnClickListener
	{
		@Override
		public void onClick(View v)
		{
			((EditText) findViewById(R.id.username)).setText("");
			((EditText) findViewById(R.id.password)).setText("");
		}
	}

}
